/* 
*@module: echarts api
*@module: description: all of the apis used in echars.vue
*@author:刘千红&王妍
*/
import request2 from '../../utils/request2'

export function getAll(){
    return request2.get('/echarts/getAll')
}
/* echarts */
export function getHistogramData(params){
    // 获取barseries of ground
    return request2.post('/groundecharts/getHistogramData', params)
}
export function getWaterHistogramData(params){
    // 获取barseries of water
    return request2.post('/waterecharts/getWaterHistogramData', params)
}
export function getRadarEachDepthValue(params){
    // 获取radarseries of ground
    return request2.post('/groundecharts/getRadarEachDepthValue', params)
}
export function getRadarWaterEachDepthValue(params){
    // 获取radarseries of water
    return request2.post('/waterecharts/getRadarWaterEachDepthValue', params)
}
export function getBar3DData(params){
    // 获取2dbar of ground
    return request2.post('/groundecharts/getBar3DData', params)
}
export function getWaterBar3DData(params){
    // 获取2dbar of water
    return request2.post('/waterecharts/getWaterBar3DData', params)
}

/* echarts_0  */
export function getCascader(){
    return request2.get('/project/getProjectInfo')
}

export function getAssessData(project_num){
    // 获取类型选择器数据
    return request2.get('/project/getRawAssessData/'+project_num)
}
export function getTableItemsByPN(project_num){
    // 获取筛选后earth表格 
    return request2.get('/project/getTableItemsByPN/'+project_num)
}

export function getWaterTableItemsByPN(project_num){
    // 获取筛选后water表格 
    return request2.get('/project/getWaterTableItemsByPN/'+project_num)
}

export function getAllMap(){
    //获取映射文件
    return request2.get('/reference/getAllMap') 
}